package com.qtcm.nas.cxm.bendianpinglun.dao;

import com.qtcm.nas.cxm.bendianpinglun.pojo.Comment_form;
import com.qtcm.nas.cxm.bendianpinglun.pojo.Orders;
import com.qtcm.nas.spc.pojo.Orders_Out;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface ICommentDao {
    //查询所有
    public List<Orders> findAll();
//    根据id查询订单数据
    public Orders findById(int id);
    //添加本店评论
    public void addComment(Comment_form commentForm);
    //分页查询
    public List<Comment_form> findAllPageCom(Integer pageNum,Integer pageSize);
    //查询全部
    public List<Comment_form> findAllCom();
    //查询好评
    public List<Comment_form> findHp();
    //查询差评
    public List<Comment_form> findCp();
    //查询单条
    public Comment_form findOneCom(int cid);
    //查询好评数
    public Long countHp();
    //查询差评数
    public Long countCp();
}
